import { createI18n } from 'vue-i18n';
// nvue不支持main.js引入
import config from "./i18n-config";
import { EnUSLang, ZhCNLang, ZhTWLang, IdIDLang } from "nutui-uniapp/locale";
import { Muster } from '@/types/utils';

// nutui 语言映射包
export const nutLocaleMaps: Muster = {
  en: EnUSLang,
  "zh-Hans": ZhCNLang,
  "zh-Hant": ZhTWLang,
  id: IdIDLang,
};
const i18n = createI18n(config);

export default i18n